<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.7"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cpp-ipfs-http-client: ipfs::http::FileUpload Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cpp-ipfs-http-client
   </div>
   <div id="projectbrief">IPFS C++ client library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.7 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceipfs.html">ipfs</a></li><li class="navelem"><b>http</b></li><li class="navelem"><a class="el" href="structipfs_1_1http_1_1FileUpload.html">FileUpload</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="structipfs_1_1http_1_1FileUpload-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">ipfs::http::FileUpload Struct Reference</div></div>
</div><!--header-->
<div class="contents">

<p>HTTP file upload.  
 <a href="structipfs_1_1http_1_1FileUpload.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="transport_8h_source.html">ipfs/http/transport.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a76d8546add495d01fd1dcd82ea8170ad"><td class="memItemLeft" align="right" valign="top">enum class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structipfs_1_1http_1_1FileUpload.html#a76d8546add495d01fd1dcd82ea8170ad">Type</a> { <a class="el" href="structipfs_1_1http_1_1FileUpload.html#a76d8546add495d01fd1dcd82ea8170adafc941c889c1d94c918bfd225c22aed65">kFileContents</a>
, <a class="el" href="structipfs_1_1http_1_1FileUpload.html#a76d8546add495d01fd1dcd82ea8170ada5bfe73daee1615146c6c4fa093c7d9ef">kFileName</a>
 }</td></tr>
<tr class="memdesc:a76d8546add495d01fd1dcd82ea8170ad"><td class="mdescLeft">&#160;</td><td class="mdescRight">The type of the <code>data</code> member.  <a href="structipfs_1_1http_1_1FileUpload.html#a76d8546add495d01fd1dcd82ea8170ad">More...</a><br /></td></tr>
<tr class="separator:a76d8546add495d01fd1dcd82ea8170ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a778df02055fa7791c1c240dd6d27b3da"><td class="memItemLeft" align="right" valign="top"><a id="a778df02055fa7791c1c240dd6d27b3da" name="a778df02055fa7791c1c240dd6d27b3da"></a>
const std::string&#160;</td><td class="memItemRight" valign="bottom"><b>path</b></td></tr>
<tr class="memdesc:a778df02055fa7791c1c240dd6d27b3da"><td class="mdescLeft">&#160;</td><td class="mdescRight">File name to pretend to the web server. <br /></td></tr>
<tr class="separator:a778df02055fa7791c1c240dd6d27b3da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2b53f7ba47384f2b11b59c216449283"><td class="memItemLeft" align="right" valign="top"><a id="ab2b53f7ba47384f2b11b59c216449283" name="ab2b53f7ba47384f2b11b59c216449283"></a>
<a class="el" href="structipfs_1_1http_1_1FileUpload.html#a76d8546add495d01fd1dcd82ea8170ad">Type</a>&#160;</td><td class="memItemRight" valign="bottom"><b>type</b></td></tr>
<tr class="memdesc:ab2b53f7ba47384f2b11b59c216449283"><td class="mdescLeft">&#160;</td><td class="mdescRight">The type of the <code>data</code> member. <br /></td></tr>
<tr class="separator:ab2b53f7ba47384f2b11b59c216449283"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7920e334ad3eee5830e99c818b8f456b"><td class="memItemLeft" align="right" valign="top">const std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structipfs_1_1http_1_1FileUpload.html#a7920e334ad3eee5830e99c818b8f456b">data</a></td></tr>
<tr class="memdesc:a7920e334ad3eee5830e99c818b8f456b"><td class="mdescLeft">&#160;</td><td class="mdescRight">The data to be added.  <br /></td></tr>
<tr class="separator:a7920e334ad3eee5830e99c818b8f456b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>HTTP file upload. </p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a76d8546add495d01fd1dcd82ea8170ad" name="a76d8546add495d01fd1dcd82ea8170ad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a76d8546add495d01fd1dcd82ea8170ad">&#9670;&#160;</a></span>Type</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">enum class <a class="el" href="structipfs_1_1http_1_1FileUpload.html#a76d8546add495d01fd1dcd82ea8170ad">ipfs::http::FileUpload::Type</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The type of the <code>data</code> member. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a76d8546add495d01fd1dcd82ea8170adafc941c889c1d94c918bfd225c22aed65" name="a76d8546add495d01fd1dcd82ea8170adafc941c889c1d94c918bfd225c22aed65"></a>kFileContents&#160;</td><td class="fielddoc"><p>The file contents, put into a string by the caller. </p>
<p>For small files. </p>
</td></tr>
<tr><td class="fieldname"><a id="a76d8546add495d01fd1dcd82ea8170ada5bfe73daee1615146c6c4fa093c7d9ef" name="a76d8546add495d01fd1dcd82ea8170ada5bfe73daee1615146c6c4fa093c7d9ef"></a>kFileName&#160;</td><td class="fielddoc"><p>File whose contents is streamed to the web server. </p>
<p>For big files. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a7920e334ad3eee5830e99c818b8f456b" name="a7920e334ad3eee5830e99c818b8f456b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7920e334ad3eee5830e99c818b8f456b">&#9670;&#160;</a></span>data</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string ipfs::http::FileUpload::data</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The data to be added. </p>
<p>Either a file name from which to read the data or the contents itself. </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>/media/melroy/Data/Projects/cpp-ipfs-http-client/include/ipfs/http/<a class="el" href="transport_8h_source.html">transport.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.7
</small></address>
</body>
</html>
